<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            border:1px solid red;
            animation: run 2s linear alternate infinite;
        }
        @keyframes run {
            0%{
                transform: translate(100px,100px)
            }
            50%{
                transform: translate(300px,300px)
            }
            100%{
                transform: translate(300px,200px)
            }
        }
    </style>
</head>
<body>
    <div class='box'>
       
    </div>
</body>
</html>